#!/usr/bin/env python_
# -*- coding: utf-8 -*-

import time
from mod_alloc import getEventList

def getEventToday():
    eDict = getEventList()
    print str(eDict)
    timetuple = time.localtime()
    month = timetuple[1]
    day = timetuple[2]
    todayList = []
    for x in eDict:
        if (month == x['month'] and day == x['day']):
            todayList.append(x)
    return todayList
    
if __name__ == '__main__':
    todayList = getEventToday()
    for x in todayList:
        print x['theme']